////////////////////////////////////////////////////////////////////////////////
// Z-Day Project File                                                         //
// -------------------------------------------------------------------------- //
// Filename:   /entities/weapons/weapon_fists/shared.lua                      //
// Type:       Shared                                                         //
// Contents:   "Fists" SWEP.                                                  //
////////////////////////////////////////////////////////////////////////////////

if ( SERVER ) then AddCSLuaFile( "shared.lua" ) end

SWEP.Base						= "weapon_zd_base"

SWEP.ViewModel					= "models/weapons/v_punch.mdl"
SWEP.WorldModel					= ""

SWEP.ViewModelFOV				= 75
SWEP.ViewModelFlip				= false

SWEP.Weight						= 5
SWEP.HoldType					= "melee"
SWEP.GunSmoke					= false
SWEP.ShowIndividualRounds		= false

SWEP.Primary.Recoil				= 0
SWEP.Primary.Damage				= 4
SWEP.Primary.NumShots			= 1
SWEP.Primary.Cone				= 0
SWEP.Primary.NoCone				= true
SWEP.Primary.Delay				= 0.43
SWEP.Primary.ClipSize			= -1
SWEP.Primary.DefaultClip		= -1
SWEP.Primary.Automatic			= false
SWEP.Primary.Ammo				= "none"

SWEP.Secondary.Recoil			= 0
SWEP.Secondary.Damage			= 20
SWEP.Secondary.Delay			= 1.7
SWEP.Secondary.ClipSize			= -1
SWEP.Secondary.DefaultClip		= -1
SWEP.Secondary.Automatic		= false
SWEP.Secondary.Ammo				= "none"

SWEP.KillString1				= "beat down"
SWEP.KillString2				= "with his bare hands"

SWEP.Mode						= WEAPON_MELEE

SWEP.Sounds						= { "Weapon_Knife.Single" }

SWEP.PrimaryTable 				= {}
SWEP.SecondaryTable				= {}

--[[-------------------------------------------------------------------------------------------------
 Primary Fire table 
-------------------------------------------------------------------------------------------------]]--
SWEP.PrimaryTable[1] = {}
SWEP.PrimaryTable[1].time 			= 0
SWEP.PrimaryTable[1].damage			= nil
SWEP.PrimaryTable[1].punch			= nil
SWEP.PrimaryTable[1].anim			= ACT_VM_HITCENTER
SWEP.PrimaryTable[1].sound			= nil

SWEP.PrimaryTable[2] = {}
SWEP.PrimaryTable[2].time 			= 0.066
SWEP.PrimaryTable[2].damage			= SWEP.Primary.Damage
SWEP.PrimaryTable[2].punch			= Angle( 3, -10, 2 ) 
SWEP.PrimaryTable[2].anim			= nil
SWEP.PrimaryTable[2].sound			= "weapons/knife/knife_slash1.wav"

SWEP.PrimaryTable[3] = {}
SWEP.PrimaryTable[3].time 			= 0.43
SWEP.PrimaryTable[3].damage			= SWEP.Primary.Damage
SWEP.PrimaryTable[3].punch			= Angle( 3, 10, -2 ) 
SWEP.PrimaryTable[3].anim			= nil
SWEP.PrimaryTable[3].sound			= "weapons/knife/knife_slash1.wav"

SWEP.PrimaryTable[4] = {}
SWEP.PrimaryTable[4].time			= 0.6
SWEP.PrimaryTable[4].damage			= nil
SWEP.PrimaryTable[4].punch			= nil
SWEP.PrimaryTable[4].anim			= ACT_VM_IDLE
SWEP.PrimaryTable[4].sound			= nil

--[[-------------------------------------------------------------------------------------------------
 Secondary Fire Table
-------------------------------------------------------------------------------------------------]]--
SWEP.SecondaryTable[1] = {}
SWEP.SecondaryTable[1].time			= 0
SWEP.SecondaryTable[1].damage		= nil
SWEP.SecondaryTable[1].punch		= Angle( 20, 20, -8 )
SWEP.SecondaryTable[1].anim			= ACT_VM_SWINGHARD
SWEP.SecondaryTable[1].sound		= nil

SWEP.SecondaryTable[2] = {}
SWEP.SecondaryTable[2].time			= 0.53
SWEP.SecondaryTable[2].damage		= nil
SWEP.SecondaryTable[2].punch		= Angle( -1, -5, 12 )
SWEP.SecondaryTable[2].anim			= nil
SWEP.SecondaryTable[2].sound		= "weapons/knife/knife_slash1.wav"

SWEP.SecondaryTable[3] = {}
SWEP.SecondaryTable[3].time			= 0.67
SWEP.SecondaryTable[3].damage		= SWEP.Secondary.Damage
SWEP.SecondaryTable[3].punch		= nil
SWEP.SecondaryTable[3].anim			= nil
SWEP.SecondaryTable[3].sound		= nil

SWEP.SecondaryTable[4] = {}
SWEP.SecondaryTable[4].time			= 1
SWEP.SecondaryTable[4].damage		= nil
SWEP.SecondaryTable[4].punch		= Angle( 40, -10, 28 )
SWEP.SecondaryTable[4].anim			= nil
SWEP.SecondaryTable[4].sound		= nil

SWEP.SecondaryTable[5] = {}
SWEP.SecondaryTable[5].time			= 1.47
SWEP.SecondaryTable[5].damage		= SWEP.Secondary.Damage*1.5
SWEP.SecondaryTable[5].punch		= Angle( -22, 20, -28 )
SWEP.SecondaryTable[5].anim			= nil
SWEP.SecondaryTable[5].sound		= "weapons/knife/knife_slash1.wav"

SWEP.SecondaryTable[6] = {}
SWEP.SecondaryTable[6].time			= 1.67
SWEP.SecondaryTable[6].damage		= nil
SWEP.SecondaryTable[6].punch		= nil
SWEP.SecondaryTable[6].anim			= ACT_VM_IDLE
SWEP.SecondaryTable[6].sound		= nil


/*

KEYFRAME DATA:

ACT_VM_HITCENTER
002 Left impact
007 Left pullback
013 Right impact
017 Right pullback

ACT_VM_SWINGHARD
018 Left impact
025 Left pullback
044 Right impact
049 Right pullback

*/